//平台属性相关的api接口所在的对象
import request from '@/utils/request'
//公共地址
const api_name ='/admin/product'
export default {
   //根据一级二级，三级分类的id获取平台属性的列表数据
   getAttrInfoList(category1Id,category2Id,category3Id){
       return request.get(`${api_name}/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
   },
   //根据id删除平台属性的数据
   deleteAttrInfoById(attrId){
       return request.delete(`${api_name}/deleteAttr/${attrId}`)
   },
   //根据平台属性的id获取对应的平台属性值的数组数据
   getAttrValueList(attrId){
       return request.get(`${api_name}/getAttrValueList/${attrId}`)
   },
   //添加或修改平台属性
   addOrUpdateAttrInfo(attrInfo){
      return request.post(`${api_name}/saveAttrInfo`,attrInfo)
   }

}




// GET /admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
// attrInfoList

// DELETE /admin/product/deleteAttr/{attrId}
// deleteAttr

// GET /admin/product/getAttrValueList/{attrId}
// getAttrValueList

// POST /admin/product/saveAttrInfo
// saveAttrInfo